try:
    from public_config import *
except ImportError:
    pass

PORT = 9032
SERVICE_NAME = 'project'

MT_PROJECT_ID = 15
JIRA_USER_ID = 127

ZENTAO_BASE_URL = 'http://zentao.bestjlb.cn/zentao/index.php'
ZENTAO_USER = 'devops'
ZENTAO_PASSWORD = 'Devops123456'

ISSUE_ACTIVE = 1
ISSUE_ACTIVE_COPY = 2
ISSUE_RESOLVED = 3
ISSUE_CLOSED = 4

ZENTAO_ACTIVE = 'active'  # 激活
ZENTAO_RESOLVED = 'resolved'  # 已解决
ZENTAO_CLOSED = 'closed'  # 已关闭

HEADERS = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0",
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
    "Accept-Language": "zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3",
    "Accept-Encoding": "gzip, deflate",
    # "Cookie":  # 头部没登录前不用传cookie，因为这里cookie就是保持登录的
    "Connection": "keep-alive",
    "Content-Type": "application/x-www-form-urlencoded",
}

# 配置禅道接口url-每个公司不一样
INTERFACE_URL = {
    # m=caselib&f=browse&t=json，可能部分接口的f值不一样
    'm': 'caselib',
    'f': 'ajaxGetDropMenu',
    't': 'json',
    # 方法 get_all_module_id
    'get_all_module_id': {
        'm': 'caselib',
        'f': 'browse',
    },
    
}
RESPONSE_PARAM = {
    # 方法 get_all_module_id
    'module': 'modules'
}